package com.hifar.demo3.model;

import java.util.List;
import java.util.Map;
import java.util.LinkedHashMap;

public class ProcedureStep {
    private String id;
    private String title;
    private String description;
    private List<ProcedureStep> subSteps;
    private Map<String, String> operationData = new LinkedHashMap<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<ProcedureStep> getSubSteps() {
        return subSteps;
    }

    public void setSubSteps(List<ProcedureStep> subSteps) {
        this.subSteps = subSteps;
    }

    public void addOperationData(String dataId, String value) {
        operationData.put(dataId, value);
    }

    public Map<String, String> getOperationData() {
        return operationData;
    }

    public String getOperationValue(String dataId) {
        return operationData.get(dataId);
    }

    public void setOperationData(Map<String, String> operationData) {
        this.operationData = operationData;
    }

}
